package main.leetcode.common;

/**
 * @description: 通用二叉树节点
 * @author: songbaicheng
 * @create: 2024-07-09 10:52
 **/
public class TreeNode {

    public int val;
    public TreeNode left;
    public TreeNode right;

    TreeNode() {
    }

    TreeNode(int val) {
        this.val = val;
    }

    TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
